package com.whfc.hdc.enums;

/**
 * @author qzexing
 * @version 1.0
 * @date 2021-04-07 18:06
 */
public enum AlgConfigCode {


    STREAM_URL("stream_url", "视频地址"),


    CHECK_TYPE("check_type", "检测类型"),


    PUSH_URL("push_url", "推送地址");

    private final String code;

    private final String desc;

    AlgConfigCode(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }


    public static AlgConfigCode parseValue(String code) {
        AlgConfigCode[] values = AlgConfigCode.values();
        for (AlgConfigCode configCode : values) {
            if (configCode.code.equals(code)) {
                return configCode;
            }
        }
        return null;
    }


}
